﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;


namespace Assets.Engine.SimpleArrow
{

    public class UIArrow
    {
        
        private List<Vector3> listPoint;
        private GameObject container;
        
        //internal UIArrow(Vector3[] listPoint, string name, GroundQuiver gq)
        //{
        //    //VectorLine.canvas3D.name = "GroundQuiver";
        //    //VectorLine.SetEndCap("endcap", EndCap.Back, gq.UIArrowMaterial, gq.EndCap);

        //    //bool loop = false;               //issue with loop = true
        //    //pathLine = new VectorLine(name, new Vector3[listPoint.Length], gq.UIArrowMaterial, 10.0f, LineType.Continuous);
        //    //pathLine.useViewportCoords = true;
        //    //pathLine.endCap = "endcap";
        //    //pathLine.MakeSpline(listPoint, listPoint.Length - 1, loop);
        //    //pathLine.continuousTexture = true;
        //    //pathLine.Draw();

        //    VectorLine.SetEndCap("arrow", EndCap.Front, gq.UIArrowMaterial, gq.EndCap);

        //    VectorLine.canvas3D.name = "LineContainer3D";

        //    bool loop = false;          //issue with loop = true
        //    pathLine = new VectorLine(name, new Vector3[listPoint.Length], gq.UIArrowMaterial , 10.0f, LineType.Continuous);

        //    Array.Reverse(listPoint);

        //    pathLine.useViewportCoords = true;
        //    pathLine.MakeSpline(listPoint, listPoint.Length - 1 , loop);
        //    pathLine.endCap = "arrow";
        //    pathLine.Draw3D();
        //    pathLine.Draw3DAuto();

            
            
        //}

    }

}
